// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.domain;

import lombok.Data;

/**
 * @author hml14563
 * @date 2021/5/6
 */
@Data
public class Profile {
    private String username;

    private String cpuNum;

    private String memory;

    private String storage;

    public String getProfile() {
        return "{\"apiVersion\": \"kubeflow.org/v1beta1\", \"kind\": \"Profile\", \"metadata\": " +
                "{\"name\": \"" + username + "\"}, \"spec\": {\"owner\": {\"kind\": \"User\", \"name\": \"" + username + "@sangfor.com\"}, " +
                "\"resourceQuotaSpec\": {\"hard\": {\"requests.storage\": \"" + storage + "Gi\"}}}}";
    }

}
